/*
 * Copyright @ 2025 weili23
 * com.example.ai.bean 14:49
 * All right reserved.
 */

package com.example.ai.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @desc:
 * @author: weili23
 * @createTime: 2025/4/30 14:49
 * @version: v1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
//在mongodb中创建一个集合chat_messages
@Document("chat_messages")
public class ChatMessages {
    //@id映射到mongodb的_id字段
    @Id
    private ObjectId messageId;  //ObjectId和mongodb的_id字段类型对应
    private String content;  //存储当前聊天记录列表的json字符串
    private String memoryId;
}
